<template>
  <div class="app-container">
    <el-form ref="hswdForm" :model="info" :rules="rules" label-width="120px">
      <el-row>

        <el-col :span="12">
          <el-form-item label="市场代码" prop="hsScdm">
            <el-select style="width: 100%" filterable clearable v-model="info.hsScdm" placeholder="请选择市场代码">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00270'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="币种" prop="hsBz">
            <el-select style="width: 100%" filterable clearable v-model="info.hsBz" placeholder="请选择币种">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00060'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="投资分类" prop="hsTzfl">
            <el-select style="width: 100%" filterable clearable v-model="info.hsTzfl" placeholder="请选择投资分类">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00263'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="资产类型" prop="hsZclx">
            <el-select style="width: 100%" filterable clearable v-model="info.hsZclx" placeholder="请选择资产类型">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00260'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="交易属性" prop="hsJysx">
            <el-select style="width: 100%" filterable clearable v-model="info.hsJysx" placeholder="请选择交易属性">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00261'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="核算项目" prop="hsHsxm">
            <el-select style="width: 100%" filterable clearable v-model="info.hsHsxm" placeholder="请选择核算项目">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00264'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发行方式" prop="hsFxfs">
            <el-select style="width: 100%" filterable clearable v-model="info.hsFxfs" placeholder="请选择发行方式">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00262'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="账户或费用代码" prop="hsZhfydm">
            <el-select style="width: 100%" filterable clearable v-model="info.hsZhfydm" placeholder="请选择账户或费用代码">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00281'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券品种" prop="hsZqpz">
            <el-select style="width: 100%" filterable clearable v-model="info.hsZqpz" placeholder="请选择证券品种">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00268'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="证券明细品种" prop="hsZqmxpz">
            <el-select style="width: 100%" filterable clearable v-model="info.hsZqmxpz" placeholder="请选择证券明细品种">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00269'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="科目层级" prop="hsKmcj">
            <el-select style="width: 100%" filterable clearable v-model="info.hsKmcj" placeholder="请选择科目层级">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00269'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="正负" prop="hsZf">
            <el-select style="width: 100%" filterable clearable v-model="info.hsZf" placeholder="请选择正负">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00269'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="境内境外" prop="hsJnjw">
            <el-select style="width: 100%" filterable clearable v-model="info.hsJnjw" placeholder="请选择境内境外">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00269'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="剩余期限" prop="hsSyqx">
            <el-select style="width: 100%" filterable clearable v-model="info.hsSyqx" placeholder="请选择剩余期限">
              <el-option
                v-for="dict in tpGlExhibDatadicts"
                :key="dict.keyId"
                :label="`${dict.keyId}【${dict.keyName}】`"
                :value="dict.keyId"
                v-if="dict.classId == 'A00269'"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="状态" prop="status">
            <el-radio-group v-model="info.status">
              <el-radio
                v-for="dict in dict.type.sys_common_status"
                :key="dict.value"
                :label="parseInt(dict.value)"
              >{{dict.label}}
              </el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="备注" prop="remark">
            <el-input maxlength="500" v-model="info.remark" type="textarea" placeholder="请输入内容"/>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
 // import {listHswd, getHswd, delHswd, addHswd, updateHswd} from "@/api/reportworld/hswd";

  export default {
    props: {
      info: {
        type: Object,
        default: null
      },
      tpGlExhibDatadicts: {
        type: Array,
        default: []
      }
    },
    name: "hswdInfo",
    dicts: ['sys_common_status'],
    data() {
      return {
        // 查询参数
        queryParams: {},
        // 表单参数
        form: {},
        // 表单校验
        rules: {}
      };
    },
    created() {
    },
    methods: {}
  };
</script>
